<template>
  <div class="form-actions">
    <span @click="show">忘记密码</span>
    <router-link :to="path" tag="span">{{ text }}</router-link>
  </div>
</template>
<script>
export default {
  props: ['path', 'text'],
  inject: ['changeForgot'],
  methods: {
    show () {
      // 显示 忘记密码弹窗
      this.changeForgot(true)
    }
  }
}
</script>
